package com.example.web.mapper;

import com.example.web.model.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Create by keboom on 2020/7/7
 */
@Mapper
public interface ProductMapper {

    @Select("select * from product")
    List<Product> selectAll();

    @Select("select * from product where productId=#{id}")
    Product selectById(Integer id);
}
